<template>
  <div>
    <h1>商品详情</h1>
  </div>
</template>


<script>
import { commodityApi } from '../../apis/details'
export default {
    data(){
    return {
         commodity:'',
    }
    },
    created(){
     let id = this.$route.query.id
     console.log(id);
     let commodity = commodityApi({id})
     commodity.then(data=>{
         console.log(data);
     })
   }
}
</script>

